﻿@using PInitiatives.Helpers

@model PInitiatives.Models.ManageUserModel
@{
    ViewBag.Title = "AccountEdit";
}
<h3>
    Ustawienia Konta</h3>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class="tabbable">
            <!-- Only required for left/right tabs -->
            <ul class="nav nav-tabs">
                <li class="active"><a href="#tab1" data-toggle="tab">Dane Osobowe</a></li>
                <li><a href="#tab2" data-toggle="tab">Hasło</a></li>
                <li><a href="#tab3" data-toggle="tab">Facebook</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="tab1">
                    @Html.HiddenFor(m => m.ID)
                    @*<div class="editor-label">
            @Html.LabelFor(m => m.Email)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.Email)
            @Html.ValidationMessageFor(m => m.Email)
        </div>*@
                    <div class="editor-label">
                        @Html.LabelFor(m => m.FirstName)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.FirstName)
                        @Html.ValidationMessageFor(m => m.FirstName)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(m => m.SecondName)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.SecondName)
                        @Html.ValidationMessageFor(m => m.SecondName)
                    </div>
                    <div class="editor-label">
                        @Html.LabelFor(m => m.LastName)
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.LastName)
                        @Html.ValidationMessageFor(m => m.LastName)
                    </div>

                            <br>
        <div class="row-fluid">
            <div class="span12">
                <p>
                    <input type="submit" value="Zapisz Ustawienia" />
                </p>
                <div style="border-bottom: 1px solid #DDD;">
                </div>
            </div>
        </div>
                </div>
                <div class="tab-pane" id="tab2">
                    <div class="row-fluid">
                        
                        @Html.ActionLink("Zmień Hasło", "ChangePassword", new { id = Model.ID }, new { @class = "button" })

                    </div>
                    @*<div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>*@
                </div>
                <div class="tab-pane" id="tab3">
                    <div class="row-fluid">
                        <div class="span1 offset">
                            <div class="editor-field">
                                @Html.CheckBox("Facebook")
                                @Html.ValidationMessageFor(m => m.Facebook)
                            </div>
                        </div>
                        <div class="span5">
                            <div class="editor-label ini-text-margin">
                                @Html.LabelFor(m => m.Facebook)
                            </div>
                        </div>
                    </div>

                            <br>
        <div class="row-fluid">
            <div class="span12">
                <p>
                    <input type="submit" value="Zapisz Ustawienia" />
                </p>
                <div style="border-bottom: 1px solid #DDD;">
                </div>
            </div>
        </div>
                    @*<div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>*@
                </div>
            </div>
        </div>

    </fieldset>
}
<div class="row-fluid">
    <div class="span4">
        <div>
            @Html.ActionLink("Powrót", "/Profile/", new { id = UserHelper.GetCurrentUserId() })
        </div>
    </div>
</div>
